import request from './index';

/**
 * 搜索接口
 * @param {object} params 
 */
const relationsReq = (id, params) => request({
  method: 'get',
  url: `/author/${id}/relations`,
  params: params
});

/**
 * 搜索接口
 * @param {object} params 
 */
const predictionsReq = (id) => request({
  method: 'get',
  url: `/author/${id}/predictions`,
});

export {
  relationsReq,
  predictionsReq
}